/* 出库报表-销售出库统计
 */

import { getRequest, getDownload } from '@/lib/axios'

export const outApi = {
  // 销售出库统计列表 三合一
  querySaleList: (param) => {
    return getRequest('/out_order/out_statistics', param)
  },
  // 订单销售明细表
  querySmartSaleList: (param) => {
    return getRequest('/statistics/sales_report', param)
  },
  // 订单销售明细表导出
  exportSmartSale: (params) => {
    return getDownload('/statistics/sales_report', params)
  },
  // 导出
  exportOutStatistics: (param) => {
    return getDownload('/out_order/export_out_statistics', param)
  },
  // 销售出库统计导出
  exportSale: (params) => {
    return getDownload('/report/sale_out', params)
  },
  // 采退出库统计导出
  exportStore: (params) => {
    return getDownload('/report/store_finance', params)
  },
  // 采购入库统计列表
  queryPutList: (param) => {
    return getRequest('/report/put_in_storage', param)
  },
  // 采购入库统计导出
  exportPut: (params) => {
    return getDownload('/report/put_in_storage', params)
  }
}
